package com.tcl.aota.persistent.dao.db;

import com.tcl.aota.persistent.model.PackageApp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kelong
 * @date 1/20/15
 */
public interface PackageAppDAO {
    /**
     * delete by package_id
     *
     * @param packageId
     * @return
     */
    public int deleteByPackageId(@Param("packageId") Long packageId);

    /**
     * delete by package_ids
     * @param ids
     * @return
     */
    public int deleteBydeleteByPackageIds(List<Long> ids);

    /**
     * delete by app_ids
     * @param ids
     * @return
     */
    public int deleteByAppIds(List<Long> ids);

    /**
     * insert data
     *
     * @param packageApp
     * @return
     */
    public int insert(PackageApp packageApp);
}
